let gulp     = require("gulp");
let {paths}  = require("./gulp.config");
let uglify   = require("gulp-uglify");
let concat   = require("gulp-concat");
let cleanCss = require("gulp-clean-css");
let dev      = require("./gulpfile.dev");

function html(){
    return gulp.src(paths.html.src)
            .pipe(gulp.dest(paths.html.dist))
}
function styles(){
    return gulp.src(paths.styles.src)
            .pipe(cleanCss())
            .pipe(gulp.dest(paths.styles.dist))
}
function scripts(){
    return gulp.src(paths.scripts.src)
            .pipe(uglify())
            .pipe(gulp.dest(paths.scripts.dist))
}

let built = gulp.series(html,styles,scripts);

exports.dev   = dev  ;
exports.built = built;